package com.example.tests;


import java.util.Set;

import org.testng.annotations.Test;

public class ValidGroupCreationTests extends TestBase {
	
	@Test
	public void testValidGroupCanBeCreated() throws Exception {
		ValueObject validGroup = new ValueObject()
		.setName("tesst").setHeader("aeferg").setFooter("fwerftwerg");
        Set<ValueObject> oldList = app.getGroupHelper().getGroups();
		// action
        app.getGroupHelper().createGroup(validGroup);
        // verification
        Set<ValueObject> newList = app.getGroupHelper().getGroups();
        verifyGroupAdded(oldList, validGroup, newList);
	}

	private void verifyGroupAdded(Set<ValueObject> oldList,
			ValueObject validGroup, Set<ValueObject> newList) {
		// TODO Auto-generated method stub
	}

}
